package com.xiaotao.mapper;

import com.xiaotao.entity.TeamMember;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import java.util.List;

@Mapper
public interface TeamMemberMapper {
    int insert(TeamMember teamMember);
    TeamMember selectByPostIdAndUserId(@Param("postId") Long postId, @Param("userId") Integer userId);
    TeamMember selectById(Long id);
    List<TeamMember> selectByPostId(Long postId);
    int updateStatus(TeamMember teamMember);
    int deleteByPostId(Long postId);
    int countByPostId(Long postId);
    int deleteByUserIdAndPostId(@Param("userId") Integer userId, @Param("postId") Long postId);
}